package com.xinzhidi.web.ctw.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.junit.Test;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/***
 * ctw配置类
 * @author cx
 * @date 2023/7/31 18:49
 */

@Data
@Component
@ConfigurationProperties(prefix = "ctw")
public class CtwEntity {

    @ApiModelProperty(value = "appKey")
    private String appKey;

    @ApiModelProperty(value = "appSecret")
    private String appSecret;

    @ApiModelProperty(value = "产品id")
    private Integer productId;

    @ApiModelProperty(value = "masterKey")
    private String masterKey;

    @ApiModelProperty(value = "属性标识")
    private String datasetId;

    @Test
    public void test(){
        System.out.println(appKey);
        System.out.println(appSecret);
        System.out.println(productId);
        System.out.println(masterKey);
    }

}
